#ifndef CALIBRATION_H
#define CALIBRATION_H

#include <QWidget>
#include <QMessageBox>
#include <widget.h>
#include <QDebug>
#include "Comm.h"
#include <QTime>

namespace Ui {
class calibration;
}

class calibration : public QWidget
{
    Q_OBJECT

public:
    explicit calibration(QWidget *parent = nullptr);
    ~calibration();

    void CtrDebug(QString color, QString text);
    void CtrDebug(QString color1, QString text1, QString color2, QString text2);

    void SetIn_Angle0Value(uint16_t num);
    void SetIn_ppnum(uint16_t num);
    void SetIn_R(float num);
    void SetIn_L(float num);
    void set_wh(int w, int h);
private slots:

    void on_Bt_StartCalib_clicked();

private:
    Ui::calibration *ui;
};

extern calibration *ca;
#endif // CALIBRATION_H
